﻿<UserControl x:Class="Mengsk.ERP.App.Orders.OrderDeliveryYT"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="1000" Loaded="UserControl_Loaded">
    <Grid >
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="100"/>
        </Grid.ColumnDefinitions>

        <Grid Grid.Row="0">
            <Grid.RowDefinitions>
                <RowDefinition Height="200*"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="100*"/>
            </Grid.RowDefinitions>
            <WebBrowser  x:Name="wb1"/>
            <GridSplitter Grid.Row="1" VerticalAlignment="Center" HorizontalAlignment="Stretch" Height="5"/>
            <TextBox Name="tbMessage" Grid.Row="2" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto" />
        </Grid>


        <Grid Grid.Column="1">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="*"/>
            </Grid.RowDefinitions>
            <StackPanel Grid.Column="1" Orientation="Vertical" Width="150">
                <Button Name="btnInjectMac" Content="注入MAC" Click="btnInjectMac_Click" Margin="3" VerticalAlignment="Center"/>
                <Button Name="btnCallQuery" Content="查询测试" Click="btnCallQuery_Click" Margin="3" VerticalAlignment="Center" Visibility="Collapsed"/>
                <TextBlock Text="快递单号:" Margin="3" VerticalAlignment="Center"/>
                <TextBox Name="tbDeliveryNumber" Margin="3" VerticalAlignment="Center" PreviewKeyDown="tbDeliveryNumber_PreviewKeyDown"/>
                <TextBlock Name="tbHistory" Text="扫描数量:" Margin="3" VerticalAlignment="Center" />
            </StackPanel>
            <ListBox Grid.Row="1" Name="listDeliveryNumber" Margin="3">
            </ListBox>
        </Grid>
    </Grid>
</UserControl>
